﻿<UserControl x:Class="SQLToolbox.View.UserControls.ucDBConnection"
       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
           Height="225" Width="300" MinHeight="225" MinWidth="300">
    <Border 
            Margin="4,4,4,4" 
            Padding="4,4,4,4"
             Grid.Column="0" Grid.Row="0" 
            Background="Transparent" 
            BorderBrush="#888" 
            BorderThickness="1" 
            CornerRadius="5,5,5,5" 
            KeyboardNavigation.TabNavigation="Local"
            KeyboardNavigation.DirectionalNavigation="Contained"
            KeyboardNavigation.TabIndex="1">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
                <RowDefinition Height="30" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="90" />
                <ColumnDefinition Width="190" />
            </Grid.ColumnDefinitions>
            <Label Name="label1" HorizontalAlignment="Left" 
                Width="80" Grid.Row="0" Grid.Column="0" >Datasources:</Label>
            <ComboBox Name="cmbDatasource" Grid.Column="1" IsEditable="False" Height="23"
                  SelectionChanged="cmbDatasources_SelectionChanged" />
            <Label Name="label4" HorizontalAlignment="Left" Grid.Row="3" Grid.Column="0">Username:</Label>
            <TextBox Name="txtUname" Grid.Row="3" Grid.Column="1" Height="23" />
            <Label Name="label6" HorizontalAlignment="Left" Grid.Row="4" Grid.Column="0">Password:</Label>
            <PasswordBox Name="txtPassword" Grid.Row="4" Grid.Column="1" Height="23" />
            <Label Name="label2" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="0">Server:</Label>
            <ComboBox Name="cmbServer" Grid.Column="1" Grid.Row="1" Height="23" IsEditable="True"
                  DropDownOpened="comboBox2_DropDownOpened" />
            <Label Name="label3" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="0">Authentication:</Label>
            <WrapPanel Grid.Column="1" Grid.Row="2"  Name="wrapPanel1" VerticalAlignment="Center">
                <RadioButton Name="rbIntegrated" GroupName="Authentication" Width="120" Checked="Authentication_Checked" IsChecked="True">Windows Integrated</RadioButton>
                <RadioButton Name="rbSQL" GroupName="Authentication" Checked="Authentication_Checked">SQL</RadioButton>
            </WrapPanel>
            <Label Name="label5" HorizontalAlignment="Left" Grid.Row="5" Grid.Column="0">Database:</Label>
            <ComboBox Name="cmbDatabase" Grid.Column="1" Grid.Row="5" Height="23" IsEditable="False"
                  DropDownOpened="cmbDatabase_DropDownOpened" />
            <Button Grid.Row="6" Name="btnTestConnection" Click="btnTestConnection_Click" Grid.Column="1" Margin="0,0,90,6">Test Connection</Button>

        </Grid>
    </Border>
</UserControl>
